package summer_vacation.cullen.one10;

/**
 * Created by Cullen on 2015/8/1.
 *
 */
public class N9 {
    public static void main(String[] args) {
        int sc[]={5,3,6,8,10,2,7};
        int man=0;
        for (int i = 6; i > 0; --i)
        {
            for (int j = 0; j < i; ++j)
            {
                if (sc[j + 1] < sc[j])
                {
                    man = sc[j];
                    sc[j] = sc[j + 1];
                    sc[j + 1] = man;
                }
            }
        }
        for(int i=0;i<7;i++){
            System.out.println(sc[i]);
        }
    }
}
